package com.qing.study.controller;

import com.qing.study.comm.Result;
import com.qing.study.service.MkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.security.NoSuchAlgorithmException;

@RestController
@Api(tags = "mk")
public class MkController {

    @Resource
    private MkService mkService;

    @ApiOperation("调用MK接口")
    @GetMapping("/mk")
    public Result hello() throws NoSuchAlgorithmException {
        return mkService.callMk();
    }
}
